import request from '@/utils/request'

/**
 * 获取所有的文章信息
 * @param current 页数
 * @returns {AxiosPromise}
 */
export function selectAllArticle(current) {
  return request({
    url: '/service-course/article/selectAllArticle',
    method: 'post',
    params:{
      current
    }
  })
}

/**
 * 驳回文章信息
 * @param current
 * @returns {AxiosPromise}
 */
export function rejectArticle(id) {
  return request({
    url: '/service-course/article/rejectArticle',
    method: 'post',
    params:{
      id
    }
  })
}

/**
 * 删除文章信息
 * @param id
 * @returns {AxiosPromise}
 */
export function deleteArticle(id) {
  return request({
    url: '/service-course/article/deleteArticle',
    method: 'post',
    params:{
      id
    }
  })
}
